
var async = require("D:\\iojs\\node_modules\\async");

async.parallel([
	function(callback) { console.log("parallel anonymous 1"); callback(null, "parallel anonymous 1"); },
	function(callback) { console.log("parallel anonymous 2"); callback(2, "error parallel anonymous 2"); },
	function(callback) { console.log("parallel anonymous 3"); callback(null, "parallel anonymous 3");}
], function(err, results) {
	console.log("parallel main callback, %s", JSON.stringify(results));
});

async.series([
	function(callback) { console.log("series anonymous 1"); callback(null, "series anonymous 1"); },
	function(callback) { console.log("series anonymous 2"); callback(null, "series anonymous 2");},
	function(callback) { console.log("series anonymous 3"); callback(null, "series anonymous 3");}
], function(err, results) {
	console.log("series main callback, %s", JSON.stringify(results));
});